package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.THomeworkStu;
import com.ruoyi.business.domain.TworkStuComment;
import com.ruoyi.business.domain.bo.FinishedHomeWorkBo;
import com.ruoyi.business.domain.vo.StuOtherCommentVo;

import java.util.List;

/**
 * 作业互评主Mapper接口
 * 
 * @author 最爱喝兽奶
 * @date 2022-08-14
 */
public interface TworkStuCommentMapper {
    /**
     * 查询作业互评主
     * 
     * @param id 作业互评主主键
     * @return 作业互评主
     */
    public TworkStuComment selectTworkStuCommentById(Long id);

    /**
     * 查询作业互评主列表
     * 
     * @param tworkStuComment 作业互评主
     * @return 作业互评主集合
     */
    public List<TworkStuComment> selectTworkStuCommentList(TworkStuComment tworkStuComment);

    /**
     * 新增作业互评主
     * 
     * @param tworkStuComment 作业互评主
     * @return 结果
     */
    public int insertTworkStuComment(TworkStuComment tworkStuComment);

    /**
     * 修改作业互评主
     * 
     * @param tworkStuComment 作业互评主
     * @return 结果
     */
    public int updateTworkStuComment(TworkStuComment tworkStuComment);

    /**
     * 删除作业互评主
     * 
     * @param id 作业互评主主键
     * @return 结果
     */
    public int deleteTworkStuCommentById(Long id);

    /**
     * 批量删除作业互评主
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTworkStuCommentByIds(Long[] ids);

    public List<StuOtherCommentVo> selectOthCommentDetailByCourseIdAndUid(FinishedHomeWorkBo bo);

    public TworkStuComment selectByWorkId(String workId);



}
